package com.stu.exercise.controller;

import com.stu.exercise.entity.R;
import com.stu.exercise.service.StatisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/statistic")
public class StatisticController {

    @Autowired
    private StatisticService statisticService;

    @RequestMapping("/info")
    public R info(){
        return statisticService.getInfo();
    }

    @RequestMapping("/detail")
    public R detail(){
        return statisticService.getDetail();
    }
}
